package com.xiyu.service.vo.system.user.user;

import com.xiyu.service.vo.system.user.baseVO.SystemUserBase;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;
import static com.xiyu.service.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import java.time.LocalDateTime;

@Schema(description = "用户分页列表")
@Data
public class UserPageOutput extends SystemUserBase {

    @Schema(description = "用户ID")
    private Long id;

    @Schema(description = "")
    private dept dept;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime createTime;

    @Schema(description = "")
    @Data
    public static class dept {

        @Schema(description = "部门名称")
        private String name;

        @Schema(description = "部门ID")
        private Long id;
    }
}